设苹果树为X
X:(180-X)=1:5
5X=180-X
6X=180
X=30
5X=150
答:苹果树30,梨树150
或:
设梨树X棵
苹果树(180-x)棵
x/(180-x)=5/1
x=150棵