You do not need to worry about the details here.
Ibuprofen is anti-inflammatory so it is useful to take some of you have inflammation because of tendonitis etc.
5 seems like a reasonable number to take.
Personally I have been dealing with my tendonitis with Fish Oil and occasional ice. The fish oil has worked the best.