Brennan made 5 pies. There were 8 slices in each strawberry pie and 5 slices in each blackberry pie. If Brennan made 28 slices of pie in total, how many of each type of pie did he make?

Please Help