the lengths are irrelevant. the only info you need to solve this is that a triangle's internal angles add to 180, and angles on a straight line add to 180
ah, the old "we drew a right angle but it represents some other angle" trick. I've been burned by that one more times than I can count.