word problem – finding maximum height and horizontal distance