If I have a car with a tyre diameter of 50cm and swap the tyres to a smaller diameter of 45cm (therefore affecting the speedometer accuracy), how could I determine an equation that relates the true speed with the display speed?

I'm having trouble getting my head around this and any help is appreciated.