solve the given-when problem