Find the sum of all the perfect squares that lie between 40 and 150.