Just some basic estimating..
50v peak-to peak is 25V base to peak, and staying with 50 Ohms for now..
Then, for sine waves, the RMS voltage is 25/SQRT(2) = 17.67 Volts, and Power = V^2/50 = 6.25 Watts
For the other extreme, a square-wave of (say) 90% on, 10% off comes to 11.25 Watts.
Peak power is 25^2/50 = 12.5Watts.
To get more power at that voltage implies a lower output impedance output perhaps from a output follower buffer type final driver.
At 40 MHz, even for a sine-wave period 25nS, the transit through 50V from the positive peak to the negative is approximately half that, and for an arbitrary wave, might encounter slews in 5 or 6 nS. Slew rates then get into unlikely high numbers.
A 40 MHz 20Watt linear amplifier is not an unusual thing, though this requirement is for arbitrary waveform.
You would expect quality, low distortion output, with stable output impedance through 2 octaves. I could be wrong, but I think it probably more than a straighforward power op-amp could manage. Other folk in this forum may well come up with some suggestions for you.