Pratik had 2 packets of cookies and each packet contains 12 pieces of cookies. He ate 4 pieces Pranav. He shared the remaining pieces of cookies equally among his 5 friends. Show the above information in a mathematics expression using brackets.