Given that each of Mike's mug holds

This implies that

Let x mugs in total, hold 4 pints of chocolate.
This implies that

Since each friend is assigned a mug, the total number of mugs is the same as the total number of friends.
Thus,

By cross-multiplication, we have

Make x the subject of the formula

Thus, 5 friends will get hot chocolate