The murder charges could lead to prison sentences of thousands of years , but under Spanish law prisoners can be held for a maximum of 40 years .