Answer:
=IF( B7 = 12, ( IF( B10 = 10,"YES", "")), 7) and PRESS ENTER
Step-by-step explanation:
the above logical if function checks the following
-IF cell B7 is 12, if true, check the value of cell B10, IF cell B10 contains 10 the function should produce YES as output to whatever cell selected, IF B10 is not 10 output of the function should be an empty string, IF B7 is not equal to 12 the the output of the function should be 7.