contestada

This nut bread contains:
The same number of pecans as walnuts.
3 more Brazil nuts than pecans
A total of 18 nuts

Write an equation to show how many of each nut this nut bread contains.