Text doesn't relocate to the right side with float right

Hello!

This is a specific question on my homework task.
In the combo class

the second span is supposed to occupy the right side of the container on the same line with the first span.
How to solve this without Flex?
I used float-left on the span , and then I used Display: inline-block in the second span. But the second span is still displayed on the line 2 instead of the line 1.

I need to solve it without the Flex box and Grid because it is the task.

My Work

I try to avoid floats in anything modern, but there’s probably a way.

I’m not sure I’m clear on the description, but you could just change the position of yellow-word to absolute with right: 0?