How two I now what speed to Use when app on autopilot to runway and when to set flaps to 5 degrees?

Welcome to the community! I would advise using VNAV for descent so you don’t need to calculate TOD and descent rates. For flaps, these topics are helpful:

Use this one for the 777s, the one above is not up to date.