we know that
To obtain a conditional relative frequency, divide a joint frequency (count inside the table) by a marginal frequency total (outer edge) that represents the condition being investigated
so
In this problem
the row conditional relative frequency for males who play basketball is
15 is the total male that play basketball
and 31 is the total male and female that play basketball
so
the ratio is the conditional relative frequency