Continuing from the original scenario, let's suppose that there were actually only 189 rooms in the main building and an additional 87 rooms in the secondary buildings of the castle, instead of the numbers previously mentioned. How many total rooms would the castle have then?