During a long drive, Tony counted the number of pickups and sedans he saw driving in the opposite direction. After a while, he noticed that on average there were 5 sedans for every 2 pickups. At this ratio, how many sedans would he have counted if he had passed 18 pickups?