Simon's congruence, denoted by ∼ k , relates the words having the same subwords of length at most k. In this paper a normal form is presented for the equivalence classes of ∼ k . The length of this normal form is the shortest possible. Moreover, a canonical solution of the equation pwq ∼ k r is also shown (the words p, q, r are parameters), which can be viewed as a generalization of giving a normal form for ∼ k . In this paper, there can be found an algorithm with which the canonical solution can be determined in O((L + n)n k ) time, where L denotes the length of the word pqr and n is the size of the alphabet.