If angle M is represented by x + 16 and angle G is represented by
X – 40, and angles M and G are complementary, what is the
measure of angle M?