Pedro just completed a tough workout, doing a mixture of push-ups and pull-ups. For every 8 push-ups he completed, he also did 5 pull-ups. If Pedro finished 27 push-ups, how many of each exercise did he do?