The value V of a square glass varies directly as the square of its length X cm. If the value of a square glass with length 3 cm is $243, find the value of a glass with length 5 cm