Staking is like a long term investment which really need some years to generate revenue
Staking varies from days to weeks and months, depending on what duration one wants. There are options for that but just that the apy differs according to the duration.
but spot trading needs just few minutes for the trade to be completed
Well, trades getting filled depends on the parameters set for them. If the parameter is high it might take days or weeks to fill. For instance, there are traders who have Bitcoin pending sell order at $80k and above. That trade won't fill until Bitcoin gets to that point. It could take days or weeks to get there. Except someone makes an error and enter a high figure in trying to send a buy at that price. We've seen that happen a lot of times.
so how can you do the two things at the same time
It's a lot easy to do. Nothing special about that. Both are different trade technics.
I don't even know such kind of feature is available on any trading platform.
It's better to stay out on something you aren't familiar with to avoid losses.
OP, my advice to you is to get a better handle on what you intend doing. That way you will avoid the pitfalls that go with trading ignorantly. Get online tutorials on YouTube if you can't get a mentor offline.