First - recognize that what you have are two angles - call them alpha and beta, where:

You are aked to find . So use the trig identity:

You can figure the values of these sines and cosines from the information you've been given. For example, . BTW - the side legth of the second triangle is