Answer: There are 48 butterflies altogether.
Explanation:
Since we have given that
The ratio of number of pink butterflies to the number of yellow butterflies is 3:5
So,
Let the number of pink butterflies be 3x
Let the number of yellow butterflies be 5x
As we have given that there are 18 pink butterflies,
So,

So, total number of butterflies is given by

Hence, there are 48 butterflies altogether.