Can you calculate optimal price to maximize revenue

Product A - Price: $9.99 #ofSales: 1415 Revenue: $14,136
Product B - Price: $18.99 #ofSales: 960 Revenue: $18,230

if so, what would the equation be using variables: Pa, Sa, Ra, Pb, Sb, Rb