An ibuprofen prescription also cost the NHS £6.87 last year, unlike in shops where it can be purchased for 39p.