Two angles of a quadrilateral measure 40° and 180°. The other two angles are in a ratio of 13:15. What are the measures of those two angles?