Please solve the programming task below using a self-contained code snippet in a markdown code block.

You are given a string s and two integers x and y. You can perform two types of operations any number of times.

Remove substring "ab" and gain x points.

	
For example, when removing "ab" from "cabxbae" it becomes "cxbae".


Remove substring "ba" and gain y points.
	
For example, when removing "ba" from "cabxbae" it becomes "cabxe".



Return the maximum points you can gain after applying the above operations on s.
 
Please complete the following python code precisely:
```python
class Solution:
    def maximumGain(self, s: str, x: int, y: int) -> int:
```