Shouldnt even have 235/40/18 on that car according to the database. Are they original oem alloys?
Should be either 245/40 both front and rear or 265/35 on the rear if you have the bogger 9J alloys fitted to the rear.
Never known that database to be wrong but it seems that you could get 235/40/18 on that model
https://www.alloywheelsdirect.net/information/fitting_chart/mercedes-benz
And that shows the rear wheels are bigger 8.5s so you will need 255/35/18 on them ideally
However there isnt much difference between 8s and 8.5 and according to oponeo you can fit the following to that rim
https://www.oponeo.co.uk/tools/fit-the-tyre-to-the-rim/8-50x18
Personally i would just pay the little bit extra and get the PS4s on the rear in 255/40r18