If we take the paycheck amount of $1020 and subtract it by the weekly salary of $300.
$1020 - $300 = $720
We get $720 in sale commissions. So to get the number of sales, you divide the $720 by the $40 per sale commission.
$720/$40 = 18
Therefore, the sales Salesman B has for the week is 18.