What do you mean by the terms .31 and .35 ?
Do you means these will be subnets 192.168.31.0/24 and 192.168.35.0/24 ?
It is really not clear from your descriptoin, what it is that you are trying to achieve. I appreciate that it is difficult to describe these things sometimes, but it is very important to know what you are trying to do, in order to propose a solution.
As these are both Cisco switches, it is easier than with some other vendors, to get the VLAN communication working.
For a start, you need to do the following on the main switch
no switchport access vlan 10
no spanning-tree portfast
As these can cause you problems.
All the ports you have configured on the attic switch are in vlan 9, except the trunk of course. Do you need these to communicate with the other VLANs ? Then somewhere you also must have a layer 3 switch or a router to do the routing between the vlans. Can you indicate where this is located ?
If you can provide answers to all these questions, then we can help you further.