x=cantida de libros
compre
5--------------6 ----|
|----------> Pc1= 6x / 5
x-----------Pc1----|
vendo
4-----------------9 |
|--------------->Pv= 6x/4------Pv= 3x/2
2/3x------------Pv |
Pv = Pc + G
3x/2 = 6x/5 + 9
15x= 12x + 90
15x -12x= 90
3x=90
x= 90/3
x=30