How to input such system
into maple so that it would solve it?
BTW we some part of system will be given to us, which we do not know certainly - may be some $A_i$'s may be some $B_i$'s as constants. We do not know how much constants we will get. And we would need from given constants get a solution for other $a$'s and $b$'s. In real life we will be provided with $s$ as a constant but I hoped for general solution=)