However, the length of the ark is described as three hundred cubits, its width as fifty cubits, and its height as thirty cubits. Therefore, through the length of the ark faith is prefigured, through the width love, and through the height hope. Therefore, the length of the ark is extended to three hundred cubits, because our faith consists in the confession of the Holy Trinity; moreover, the number one hundred is a perfect number. So in three hundred cubits our faith is foreshown, because the Father, the Son, and the Holy Spirit have equal perfection, as it is written: Such as the Father is, su...ch is the Son, such is the Holy Spirit (Athanasian Creed).
Nevertheless, its width is extended to fifty cubits, because faith works through love. But it is not unfitting that love is represented by the fifty cubits of width; for seven times seven makes forty-nine, and if you add one to this number, you find fifty. Therefore love of neighbor is not inappropriately contained in the number seven, because it cannot be brought to completion without the seven virtues. Now in seven times seven, each believer extends love of neighbor, in that, by whatever ways needs or adversities can happen to neighbors, by those same ways he himself stands ready to come to their aid: for example, when he provides what is necessary to the hungry, the naked, the stranger, the needy, the one placed in prison; when he consoles the sorrowful, when he moderates the angry with a word, when he brings peace to the one who bears hatred in his heart, and leads the quarrelsome back to peace; when he rouses the one lying in sins to repentance; when he strives to draw with himself to eternal life all whom he can; and, to speak briefly, by whatever ways he wishes that someone else would help him in a wholesome manner, by those same ways he himself, as far as he is able, is ready to give help. But if you add one to the seven times seven, they become fifty; likewise, if you add love of the one God to love of neighbor, then all love is brought about in you as whole and perfect.
But the height of the ark was raised to thirty cubits, because he possesses a beneficial hope who does not disagree, either in deed or in belief, with the faith of the Holy Trinity as it has been handed down to us by the apostles, and with the other teachings. For whoever claims to himself hope of obtaining eternal life without right faith undoubtedly deceives himself, because without faith it is impossible to please God (Heb. 11:6). Therefore the height of the ark arose from its great length and width, and was brought to completion upward in a cubit; because love, which is born from faith, extends itself in great width in caring for one’s neighbors. It is, however, brought to completion upward in a cubit, because all the hope and desire of the faithful tends toward the vision of the one God.
Source: Commentary on Revelation