A quadrilateral has two angles that measure 210° and 40°. The other two angles are in a ratio of 3:8. What are the measures of those two angles?