resolve Problem6