I need help to see if this sentence is in correct format
I would use it myself.
The first that refers to what they are about to tell you. The second refers to 'the solution' which they have just been discussing.
In informal speech, one that could be used and the same meaning would still be clear.