A quadrilateral has two angles that measure 24° and 314°. The other two angles are in a ratio of 4:7. What are the measures of those two angles?