3 feet apart on the 5' & 6' shelf and also on the 9' shelf with 3 supports not 2.
Of course you didn't specify how thick or deep the wood shelve are.
There is not specific distance, just what appears to be structurally sound.
Basically, you aim is to space the supports evenly across the load.