wrap (one's) wits around
understand, using (one's) mental faculties or intellectual powers.