Wrong Question

I think that in this question first we have to find minimum of X AND Y then we have to multiply with 3 as they are living in pair. i think that case should show output 18 instead 16

“The friends can either get three double rooms or get two triple rooms.”