I think this is correct. I’m not for sure but I did a lot of work. You put g(2) in linear standard which is practically alphabetical order in which numbers go before letters. You do this for both question. So both go to 2(g) and 5(g). Then you multiply g by the number and get 2(2) and 5(5). Then multiply the two numbers and get 2(2)=4 and 5(5)=25.